package com.andy.beef.ui.main.viewmodel

import com.andy.beef.app.room.BaseEnumModel
import com.andy.module.network.ApiResponse
import com.andy.beef.ui.main.api.CattleApiService
import com.andy.beef.ui.main.api.cattleService
import com.andy.beef.ui.main.bean.group.WagyEnumGroupBean

/**
 * @creator:LuoFan
 * @date:2022/6/28
 * @description: breed enum请求model
 */
class WagyEnumModel : BaseEnumModel<WagyEnumGroupBean>() {

    override suspend fun genRequest(): ApiResponse<WagyEnumGroupBean> {
        return cattleService.getWagyGroup(genSaveKey(), HashMap())
    }

    override fun genSaveKey(): String {
        return CattleApiService.URL_WAGY_ENUM
    }
}